#!/bin/bash
echo “Downloading latest exploit-db archive file”
wget http://www.exploit-db.com/archive.tar.bz2 -O /tmp/archive.tar.bz2
echo “File successfully downloaded”
echo “Decompressing archive file to /usr/share/exploitdb/”
tar -xvjf /tmp/archive.tar.bz2 -C /usr/share/exploitdb/
echo “Decompression complete, reseting executable properties for files.csv”
chmod +x /usr/share/exploitdb/files.csv
echo “Tidying up downloaded file”
rm /tmp/archive.tar.bz2
echo “Update complete.”
